import javax.swing.*;
import java.awt.*;
import java.util.ArrayList;

/**
 * Created by berkbozkurt on 07/03/15.
 */
public class GamePanel extends JPanel {

    private JTextArea scoreField;
    private JTextArea lifeField;
    private int score;
    private int life;



    public GamePanel() {
        this.score = 0;
        this.life = 3;
        this.setBackground(Color.BLACK);

    }


    public void increaseScore(int score) {
        this.score += score;
        scoreField.setText(String.format("%i", this.score));
    }
    public void decreaseLife() {
        this.life--;
        lifeField.setText(String.format("%i", this.life));
    }
    public void increaseLife() {
        this.life++;
        lifeField.setText(String.format("%i", this.life));
    }
}
